package com.buba.record.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.buba.pojo.record.DrugRecord;
import com.buba.pojo.record.Record;
import com.buba.pojo.user.Inpatient;
import com.buba.pojo.user.PatientCard;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 记录表
 * </p>
 *
 * @author testjava
 * @since 2022-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Record对象", description="记录表")
public class RecordVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "就诊人id")
    private Integer patientId;

    @ApiModelProperty(value = "住院人id")
    @TableField("Inpatient_id")
    private Integer inpatientId;

    @ApiModelProperty(value = "就诊卡id")
    private Integer patientcardDi;

    @ApiModelProperty(value = "药品记录表的流水号")
    private String drugRecordSerialNumber;

    @ApiModelProperty(value = "充值说明（1门诊缴费、2挂号缴费、3门诊充值、4住院充值、5住院消费、6核酸消费、7体检消费、8就诊卡充值）")
    private String rechargeExplain;

    @ApiModelProperty(value = "金额")
    private BigDecimal money;

    @ApiModelProperty(value = "预约id")
    private Integer appointmentId;

    @ApiModelProperty(value = "创建时间")
    private Date creationTime;

    @ApiModelProperty(value = "修改时间")
    private Date modificationTime;

    private PatientCard patientCard;

    private Inpatient inpatient;

    private DrugRecord drugRecord;


}
